package com.ea.eadp.nexus.test.pageDefinition;

import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;

/**
 * Created by doma on 10/28/2014.
 */
public class ForewordPage extends BasePage {
    private By btnNext = By.id("btnNext");

    public ForewordPage(WebDriver driver) {
        super(driver, ForewordPage.class);
    }

    public void nextStep() {
        driver.switchTo().window(this.operationWindowHandle);
        waitForWebElementPresent(btnNext);
        driver.findElement(btnNext).click();
    }
}